<?php if ($sf_request->hasError('delete')): ?>
<div class="form-errors">
  <h2><?php echo __('Could not delete the selected %name%', array('%name%' => 'MR')) ?></h2>
  <ul>
    <li><?php echo __($sf_request->getError('delete')) ?></li>
  </ul>
</div>
<?php elseif ($sf_request->hasError('publish')): ?>
<div class="form-errors">
  <h2><?php echo __('Could not publish the selected %name%', array('%name%' => 'MR')) ?></h2>
  <ul>
    <li><?php echo __($sf_request->getError('publish')) ?></li>
  </ul>
</div>
<?php elseif ($sf_request->hasError('edit')): ?>
<div class="form-errors">
  <h2><?php echo __('Could not edit the selected %name%', array('%name%' => 'MR')) ?></h2>
  <ul>
    <li><?php echo __($sf_request->getError('edit')) ?></li>
  </ul>
</div>
<?php elseif ($sf_user->hasFlash('notice')): ?>
<div class="save-ok">
 <h2><?php echo __($sf_user->getFlash('notice')) ?></h2>
</div>
<?php endif; ?>
